/*
 * Copyright 2002-2016 the Beijing Brain Technology co.,LTD http://www.bris.cn/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bris.niosocket;
/**
 * Socket服务端</br>
 * 2016年2月2日</br>
 * @author xunaidong
 * @since 1.0.0
 */
public interface Server {

	/**
	 * 启动服务 <br/> 
	 * 提示:该方法会导致主线程阻塞,与第三方集成时,最好使用子线程调用</br>
	 * @author xunaidong 
	 * @since 1.0.0
	 */
	public void start();

	/**
	 * 停止服务</br>
	 * @author xunaidong 
	 * @since 1.0.0
	 */
	public void stop();
}
